package com.hzit.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hzit.pojo.Category;
import com.hzit.services.CategoryService;

@Controller
@RequestMapping("/category/")
public class CategoryController {
@Autowired 
private CategoryService categoryservice;
	@RequestMapping("selectAll")
	public String selectAll(Integer parentId){
		List<Category> list=categoryservice.selectAll(parentId);
		return "MainPage.jsp";
	}
}
